package com.mldong.modules.sys.enums;

import com.mldong.exception.CommonError;
import com.mldong.exception.ErrEnum;

/**
 * 系统管理模块错误码
 */
@ErrEnum(name="sys",value="系统错误码",bizCode=1001,min=0,max=1000)
public enum SysErrEnum implements CommonError {
    NOT_DATA(10010001,"数据不存在"),
    USER_NAME_EXISTS(10010002,"用户名已存在"),
    MOBILE_PHONE_EXISTS(10010003,"手机号已存在"),
    MENU_CODE_ERR(10010004,"菜单唯一编码非法字符串")
    ;
    private Integer code;
    private String message;
    SysErrEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
    @Override
    public Integer getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }
}
